{php include wl_template('common/header');}
 <ul class="nav nav-tabs">
	<li class="active"><a href="javascript:;">回复评价</a></li>
</ul>
<div class="app-content">
    <div class="app-form">
        <div class="panel panel-default">
            <form id="dataform" action="" method="post" class="form-horizontal form-validate" novalidate="novalidate">
                <input type="hidden" name="p" value="store" />
                <input type="hidden" name="ac" value="storeComment" />
                <input type="hidden" name="do" value="reply" />
                <div class="form-group">
                    <label class="col-sm-2 control-label">商家</label>
                    <div class="col-sm-9">
                        <div class="form-control-static"><label class="label label-primary">{$data['sName']}</label><br></div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">评价者</label>
                    <div class="col-sm-9">
                        <input type="text" name="nickname" value="{$data['nickname']}" id="nickname" class="form-control" readonly="">
                        <span id="nicknamethumb" class="help-block">
                            <img style="width:100px;height:100px;border:1px solid #ccc;padding:1px" src="{$data['headimg']}" onerror=""></span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">评分等级</label>
                    <div class="col-sm-9">
                        <div class="form-control-static" style="color:#ff6600">
                            {loop $data['star'] $l}<i class="fa fa-star"></i>{/loop}
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"><span style="color:red">*</span>首次评价</label>
                    <div class="col-sm-9">
                        <div class="form-control-static">{$data['text']}</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-9">
                        {php echo attachment_select_multi('pic',$data['pic']);}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">首次回复</label>
                    <div class="col-sm-9">
                        <textarea name="replytextone" class="form-control">{$data['replytextone']}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-9">
                        {php echo attachment_select_multi('replypicone', $data['replypicone']);}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-9">
                        <input type="submit" value="提交" class="btn btn-primary min-width">
                        <input type="hidden" name="token" value="{$_W['token']}">
                        <input type="hidden" name="id" value="{$_GPC['id']}">
                        <input type="hidden" name="page" value='{$pindex}' />
                        <input type="button" name="back" onclick="history.back()" style="margin-left:10px;" value="返回列表" class="btn btn-default min-width">
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
	$('#dataform').submit(function(){
		var  replytextone = $('textarea[name="replytextone"]').val();
		if(!$.trim(replytextone)) {
			util.tips("未填写回复内容！");	
			return false;
		}
	});
</script>
{php include wl_template('common/footer');}